/*
 * MeshGroup.h
 *
 *  Created on: 01/11/2011
 *      Author: faust
 */

#ifndef MESHGROUP_H_
#define MESHGROUP_H_

#include "Texture.h"
#include "UtilsJNI.h"

class MeshGroup
{
public:

    /// Constructor
    MeshGroup();

    /// Destructor.
    ~MeshGroup();

	int* indices;
	int indicesCount;
	Texture* texture;
	bool hasTexture;

	static MeshGroup* create(JNIEnv* env, jobject jMeshGroup);

private:
	static void loadTexture(JNIEnv* env, jobject jMeshGroupObject, MeshGroup* group);
};

#endif /* MESHGROUP_H_ */
